﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Sobiens.Connector.Admin.BLL
{
    
    [DataContract(Namespace = "")]
    public class ExplorerLocation
    {
        [DataMember(Order = 1)]
        public ApplicationTypes ApplicationTypes { get; set; }

        [DataMember(Order = 2)]
        public String ID { get; set; }

        [DataMember(Order = 3)]
        public String SiteSettingID { get; set; }

        [DataMember(Order = 4)]
        public bool ShowAll { get; set; }

        [DataMember(Order = 5)]
        public BasicFolderDefinition BasicFolderDefinition { get; set; }

        [DataMember(Order = 6)]
        public bool AllowToSelectSubfolders { get; set; }

        [DataMember(IsRequired = false, EmitDefaultValue = false, Order = 7)]
        public bool IsDeleted { get; set; }
    }


    [CollectionDataContract(ItemName = "ApplicationType", Namespace="")]
    public class ApplicationTypes: List<String>
    {   }


    [DataContract(Namespace = "")]
    public class BasicFolderDefinition
    {
        [DataMember(Order = 1)]
        public BasicFolderDefinition[] Folders { get; set; }
        
        [DataMember(Order = 2)]
        public String SiteSettingID { get; set; }

        [DataMember(Order = 3)]
        public String Title { get; set; }

        [DataMember(Order = 4)]
        public String FolderUrl { get; set; }

        [DataMember(Order = 5)]
        public String FolderType { get; set; }
    }
}
